package com.verify.emun;

public enum B2 {
    NON_AGRICULTURAL("非农业户口"),
    OTHER("其他"),
    AGRICULTURAL("农业户口");

    private final String name;

    B2(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public static boolean contains(String value) {
        for (B2 type : B2.values()) {
            if (type.getName().equals(value)) {
                return true;
            }
        }
        return false;
    }
}
